package com.efast.cafe.portal.dao.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.efast.cafe.portal.entity.base.PortalBaseLov;

public interface PortalBaseLovDao {
	



		/**
		 * @Date        :      2016-8-17
		 * @param allConditions
		 * @return
		 */
//		public List<PortalBaseLov> queryListConditions(@Param(value="allConditions")List<PortalSearchTemplateConditions> allConditions);
//
//		
		
		
		
		 List<PortalBaseLov> queryByParamKey(@Param(value="paramKey")String paramKey);
		
		 List<PortalBaseLov> queryGroupByParentId(@Param(value="list")List<PortalBaseLov> list);
		
		 List<PortalBaseLov> queryByParentId(@Param(value="list")List<PortalBaseLov> list);
		
		 List<PortalBaseLov> queryListParamKey(@Param(value="list")List<PortalBaseLov> list);
		
		
		 List<PortalBaseLov> queryListNextNode(@Param(value="list")List<PortalBaseLov> list);
		 
		 int queryCountByParamKeyAndId(@Param(value="paramKey")String paramKey,@Param(value="id")String id);
		 
		 List<PortalBaseLov> queryListByParamKeyAndId(@Param(value="paramKey")String paramKey,@Param(value="id")String id);
		 
		 List<PortalBaseLov> queryListByCompanyOrUser(@Param(value="paramKey")String paramKey,@Param(value="id")String id,@Param(value="username")String username,@Param(value="companyCode")String companyCode);
		 
		
		 List<PortalBaseLov> pageListLov(@Param(value="paramKey")String paramKey,@Param(value="id")String id);
		 
		 List<PortalBaseLov> pageListLovByCompany(@Param(value="paramKey")String paramKey,@Param(value="id")String id);
		 
		 int countListLov(@Param(value="paramKey")String paramKey,@Param(value="id")String id);
		 
		 List<PortalBaseLov> queryListByParamKey(@Param(value="paramKey")String paramKey);
		 
		 public Long insertListMap(@Param(value="listMap")List<Map<String, String>> map);
		 
		 public List<PortalBaseLov> queryListByParamKeyByMap(@Param(value="listMap")List<Map<String, Object>> map);
}
